CURRENT_DIR=$(cd "$(dirname "$0")"; pwd)
USERDATA_DIR="${HOME}/Library/Developer/Xcode/UserData/"
TEMPLATE_DIR="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/File Templates/iOS/Source/"


# 安装文件头模板
cp "${CURRENT_DIR}/文件头模板/IDETemplateMacros.plist" "$USERDATA_DIR"

# 安装代码模板
cp -rf "${CURRENT_DIR}/文件模板/"*.xctemplate "${TEMPLATE_DIR}"
